Micron Document
Fox's Git Mirrors


Displaying Raw • Download

hardware/Serial.h 7f5fe36cc24e012dcb51f1e0271f478150a2bc35 (7f5fe36c) Text, 354 B

#ifndef SERIAL_H
#define SERIAL_H

#include "device.h"

#include <stdio.h>
#include <stdbool.h>
#include <avr/io.h>

typedef struct Serial {
FILE uart0;
} Serial;

void serial_init(Serial *serial);
bool serial_available(uint8_t index);
int uart0_putchar(char c, FILE *stream);
int uart0_getchar(FILE *stream);
char uart0_getchar_nowait(void);

#endif
Served by rngit 1.5.0 - Generated in 0.02s